import { createStorage } from './storage'

const prefixKey = 'Vue_Naive_Admin_'

export const createLocalStorage = function (prefixKey: string = '') {
  return createStorage(localStorage, prefixKey)
}

export const createSessionStorage = function (prefixKey: string = '') {
  return createStorage(sessionStorage, prefixKey)
}

export const lStorage = createLocalStorage(prefixKey)

export const sStorage = createSessionStorage(prefixKey)
